# 基础镜像
FROM harbor.xiaoshu.com/java/java:1.8.0_151

# 作者信息
MAINTAINER "deane.jia@xiaoshu.com"

COPY docker-entrypoint.sh /usr/local/bin/
ADD target/ubtechinc-im-server-0.0.1-SNAPSHOT.jar /app.jar

RUN bash -c 'touch /app.jar' && chmod +x /usr/local/bin/docker-entrypoint.sh && ln -s usr/local/bin/docker-entrypoint.sh /entrypoint.sh

ENTRYPOINT ["docker-entrypoint.sh"]
EXPOSE 8080
CMD [ "run" ]
